package com.mocha.bss.feign.general.api;

import com.coffee.excel.MochaExcelSheet;
import com.mocha.bss.BssServerInfo;
import com.mocha.bss.feign.general.api.fallback.MochaExcelFieldFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: songkui
 * @since: 2022/3/11 15:25
 */
@FeignClient(name = BssServerInfo.APPLICATION_NAME, contextId = "mochaExcel",path = BssServerInfo.EXCEL_PATH, fallbackFactory = MochaExcelFieldFeignFallback.class)
public interface MochaExcelFieldFeign {

    @GetMapping("/find/field")
    MochaExcelSheet findFields(@RequestParam("excelCode") String excelCode, @RequestParam("fields") String fields);

}
